﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Management.Core.SubCheckLog
{
    public class SubCheckLog
    {
        [Key]
        public int SubCheckLogID { get; set; }

        [Display(Name = "单据号")]
        [Required(ErrorMessage = "非空")]
        public int MainCheckLogID { get; set; }

        [Display(Name = "等级号")]
        public int GradeID { get; set; }

        [Display(Name = "A级合格")]
        public int GradeA { get; set; }

        [Display(Name = "B级合格")]
        public int GradeB { get; set; }

        [Display(Name = "弱光")]
        public int LowLight { get; set; }

        [Display(Name = "斑痕颜色")]
        public int SpottedColor { get; set; }

        [Display(Name = "碎片裂纹")]
        public int DebrisCrack { get; set; }

        [Display(Name = "入库合计")]
        public int TotalStorage { get; set; }

        [Display(Name = "创建时间")]
        public DateTime Created_at { get; set; }

        [Display(Name = "更新时间")]
        public DateTime Updated_at { get; set; }

        public virtual MainCheckLog.MainCheckLog MainCheckLog { get; set; }

        public virtual Grade.Grade Grade { get; set; }
    }
}
